package com.zhongtengxin.zhanzhao.beas

/**
 * Created by Wind_Fantasy on 15/3/26.
 */

import android.os.Bundle

import com.wzn.libaray.utils.Logger
import com.xuebank.nfe.nfecar.MainActivity
import com.xuebank.nfe.nfecar.beas.BaseTitleBarFragment


abstract class BaseMainMenuFragment : BaseTitleBarFragment() {

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        onHiddenChanged(isHidden)
    }

    override fun onHiddenChanged(hidden: Boolean) {
        super.onHiddenChanged(hidden)
        Logger.d(TAG, TAG + " onHiddenChanged : " + hidden)
        if (!hidden && isAdded && null != titleBar)
            initTitleBar()
    }

    override fun onResume() {
        super.onResume()
    }

    fun getActivityMine(): MainActivity {
        return activity as MainActivity
    }

}

